package cn.iocoder.yudao.module.erp.controller.admin.suppliersendorderitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 随货同行单项新增/修改 Request VO")
@Data
public class SupplierSendOrderItemSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31300")
    private Long id;

    @Schema(description = "随货同行单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "31472")
    @NotEmpty(message = "随货同行单编号不能为空")
    private String outOrderId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "18395")
    @NotNull(message = "产品编号不能为空")
    private Long productId;

    @Schema(description = "产品单位", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "产品单位不能为空")
    private Long productUnit;

    @Schema(description = "产品规格", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "产品规格不能为空")
    private String productStandards;

    @Schema(description = "产品单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "16164")
    @NotNull(message = "产品单价不能为空")
    private BigDecimal productPrice;

    @Schema(description = "批次", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "批次不能为空")
    private String batch;

    @Schema(description = "有效期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "有效期不能为空")
    private LocalDateTime validityDate;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "3581")
    @NotNull(message = "数量不能为空")
    private BigDecimal count;

    @Schema(description = "总价", requiredMode = Schema.RequiredMode.REQUIRED, example = "16898")
    @NotNull(message = "总价不能为空")
    private BigDecimal totalPrice;

    @Schema(description = "实际入库数量", example = "5964")
    private BigDecimal inCount;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "产品单位")
    private Long productUnitId;

    @Schema(description = "产品单位")
    private String productUnitName;

    @Schema(description = "产品分类")
    private Long productCategoryId;

    @Schema(description = "产品分类")
    private String productCategoryName;
}